import { createRouter, createWebHistory } from "vue-router";
const Login = () => import("../views/login/index.vue");
const Home = () => import("../views/home/index.vue");
const Register = () => import("../views/register");

const routes = [
  { path: "/", redirect: "/login" },
  {
    path: "/home",
    name: "home",
    component: Home,
  },
  {
    path: "/login",
    name: "Login",
    component: Login,
  },
  {
    path: "/register",
    name: "Register",
    component: Register,
  },
];
const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
